<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-content">
        <?php $form=$this->beginWidget('CActiveForm', array(
               'id'=>'email-templates-form',
               'enableAjaxValidation'=>false,
                'htmlOptions'=>array(
                    'class'=>'form-horizontal',
                ),              
       )); ?>
                <fieldset>
                    <div class="control-group">
                        <label for="focusedInput" class="control-label">Name</label>
                        <div class="controls">
                            <?php echo $form->textField($model,'email_name',array('size'=>60,'class'=>'span6')); ?>
                        </div>
                            <?php echo $form->error($model,'email_name'); ?>
                    </div>
                    <div class="control-group">
                        <label for="focusedInput" class="control-label">Email subject</label>
                        <div class="controls">
                            <?php echo $form->textField($model,'email_subject',array('size'=>60,'class'=>'span6')); ?>
                        </div>
                            <?php echo $form->error($model,'email_subject'); ?>
                    </div>

                    <div class="control-group">
                        <label for="focusedInput" class="control-label">Parameter description</label>
                        <div class="controls">
                            <?php echo $form->textArea($model,'parameter_description',array('rows'=>6, 'cols'=>150,'class'=>'span6')); ?>
                        </div>
                            <?php echo $form->error($model,'parameter_description'); ?>
                    </div>

                    <div class="control-group" >
                       <?php echo $form->labelEx($model, 'email_body', array('class' => 'control-label')); ?>
                       <div class="controls">
                           <span class="help-inline"><?php echo $form->error($model, 'email_body'); ?></span>
                       </div>
                   </div>
                   <?php
                        $this->widget('ext.editMe.ExtEditMe', array(
                            'model' => $model,
                            'height' => '250px',
                            'width' => '100%',
                            'attribute' => 'email_body',
                            'toolbar' => Yii::app()->params['ckeditor'],
                            'filebrowserBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html',
                            'filebrowserImageBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Images',
                            'filebrowserFlashBrowseUrl' => Yii::app()->baseUrl . '/ckfinder/ckfinder.html?type=Flash',
                            'filebrowserUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files',
                            'filebrowserImageUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images',
                            'filebrowserFlashUploadUrl' => Yii::app()->baseUrl . '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash',
                        ));
                   ?>
                   <div class="clear"></div>





                   
                    <div class="form-actions">
                        <button type="submit" class="btn btn-primary">Save changes</button>
                        <button type="reset" class="btn">Cancel</button>
                    </div>
                </fieldset>
         <?php $this->endWidget(); ?>

        </div>
    </div><!--/span-->
</div><!--/row-->